﻿<%@ Page Title="" Language="C#" MasterPageFile="~/ClientReg.master" AutoEventWireup="true" CodeFile="ClientRegistration.aspx.cs" Inherits="ClientRegistration" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
    <script type="text/javascript" language="javascript">
        function isNumberKey(evt) {
            var charCode = (evt.which) ? evt.which : event.keyCode;
            if (charCode != 46 && charCode > 31
            && (charCode < 48 || charCode > 57))
                return false;
            return true;
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <div class="container-fluid">
        <h3 class="page-title">
            Client<small></small>
        </h3>
        <%--<ul class="breadcrumb">
            <li><i class="icon-home"></i>Home<span class="icon-angle-right"> </span></li>
            <li>Admin<span class="icon-angle-right"></span></li>
            <li>Add New</li>
        </ul>--%>
        
        <br />
        <div class="alert alert-danger" id="layerError" runat="server" style="display: none;">
        </div>
        <div class="alert alert-success" id="layerSuccess" runat="server" style="display: none;">
        </div>
        <div class="row-fluid">
            <div class="span12">
                <div class="portlet box blue">
                    <div class="portlet-title">
                        <div class="caption">
                            Client Registration</div>
                    </div>
                    <div class="portlet-body form">
                        <div class="form-horizontal form-view">
                            
                            <div class="row-fluid">
                                <div class="span6">
                                    <div class="control-group">
                                        <label class="control-label">
                                            First Name<span class="required">*</span></label>
                                        <div class="controls">
                                            <asp:TextBox ID="txtFirstName" runat="server" CssClass="span6 m-wrap"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="rfvFN" runat="server" ErrorMessage="Please enter first name"
                                                ValidationGroup="Client" CssClass="required" ControlToValidate="txtFirstName"
                                                Display="Dynamic"></asp:RequiredFieldValidator>
                                        </div>
                                    </div>
                                </div>
                                <div class="span6">
                                    <div class="control-group">
                                        <label class="control-label">
                                            Last Name<span class="required">*</span></label>
                                        <div class="controls">
                                            <asp:TextBox ID="txtLastName" runat="server" CssClass="span6 m-wrap"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Please enter last name"
                                                ValidationGroup="Client" CssClass="required" ControlToValidate="txtLastName"
                                                Display="Dynamic"></asp:RequiredFieldValidator>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="row-fluid">
                                <div class="span6">
                                    <div class="control-group">
                                        <label class="control-label">
                                            Phone #<span class="required">*</span></label>
                                        <div class="controls">
                                            <asp:TextBox ID="txtPhone" runat="server" CssClass="span6 m-wrap" onkeypress="return isNumberKey(event)"
                                                MaxLength="10"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="rfvPhone" runat="server" ErrorMessage="Please enter phone #"
                                                ValidationGroup="Client" CssClass="required" ControlToValidate="txtPhone" Display="Dynamic"></asp:RequiredFieldValidator>
                                        </div>
                                    </div>
                                </div>
                                <div class="span6">
                                    <div class="control-group">
                                        <label class="control-label">
                                            Email Address<span class="required">*</span></label>
                                        <div class="controls">
                                            <asp:TextBox ID="txtEmailAddress" runat="server" CssClass="span6 m-wrap"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Please enter phone email address"
                                                ValidationGroup="Client" CssClass="required" ControlToValidate="txtEmailAddress"
                                                Display="Dynamic"></asp:RequiredFieldValidator>
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtEmailAddress"
                                                ErrorMessage="Please enter valid email address." ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="row-fluid">
                                <div class="span6">
                                    <div class="control-group">
                                        <label class="control-label">
                                            Address<span class="required">*</span></label>
                                        <div class="controls">
                                            <asp:TextBox ID="txtAddress" runat="server" CssClass="span6 m-wrap"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="rfvAddress" runat="server" ErrorMessage="Please enter address"
                                                ValidationGroup="Client" CssClass="required" ControlToValidate="txtAddress" Display="Dynamic"></asp:RequiredFieldValidator>
                                        </div>
                                    </div>
                                </div>
                                <div class="span6">
                                    <div class="control-group">
                                        <label class="control-label">
                                            City<span class="required">*</span></label>
                                        <div class="controls">
                                            <asp:TextBox ID="txtCity" runat="server" CssClass="span6 m-wrap"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="rfvCity" runat="server" ErrorMessage="Please enter city"
                                                ValidationGroup="Client" CssClass="required" ControlToValidate="txtCity" Display="Dynamic"></asp:RequiredFieldValidator>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="row-fluid">
                                <div class="span6">
                                    <div class="control-group">
                                        <label class="control-label">
                                            State<span class="required">*</span></label>
                                        <div class="controls">
                                            <asp:TextBox ID="txtState" runat="server" CssClass="span6 m-wrap"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="rfvState" runat="server" ErrorMessage="Please enter state"
                                                ValidationGroup="Client" CssClass="required" ControlToValidate="txtState" Display="Dynamic"></asp:RequiredFieldValidator>
                                        </div>
                                    </div>
                                </div>
                                <div class="span6">
                                    <div class="control-group">
                                        <label class="control-label">
                                            PinCode<span class="required">*</span></label>
                                        <div class="controls">
                                            <asp:TextBox ID="txtPincode" runat="server" CssClass="span3 m-wrap" onkeypress="return isNumberKey(event)"
                                                MaxLength="6"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="rfvPC" runat="server" ErrorMessage="Please enter pincode"
                                                ValidationGroup="Client" CssClass="required" ControlToValidate="txtPincode" Display="Dynamic"></asp:RequiredFieldValidator>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="row-fluid">
                                <div class="span6">
                                    <div class="control-group">
                                        <label class="control-label">
                                            Username <span class="required">*</span></label>
                                        <div class="controls">
                                            <asp:TextBox ID="txtUsername" runat="server" CssClass="span6 m-wrap"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="rfvP" runat="server" ErrorMessage="Please enter Username"
                                                ValidationGroup="Client" CssClass="required" ControlToValidate="txtUsername"
                                                Display="Dynamic"></asp:RequiredFieldValidator>
                                        </div>
                                    </div>
                                </div>
                                <div class="span6">
                                    <div class="control-group">
                                        <label class="control-label">
                                            Password<span class="required">*</span></label>
                                        <div class="controls">
                                            <asp:TextBox ID="txtPassword" runat="server" TextMode="Password" CssClass="span6 m-wrap"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="rfvCP" runat="server" ErrorMessage="Please enter password"
                                                ValidationGroup="Client" CssClass="required" ControlToValidate="txtPassword"
                                                Display="Dynamic"></asp:RequiredFieldValidator>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="row-fluid">
                                <div class="span6">
                                    <div class="control-group">
                                        <label class="control-label">
                                            Confirm Password <span class="required">*</span></label>
                                        <div class="controls">
                                            <asp:TextBox ID="txtConfirmPassword" runat="server" TextMode="Password" CssClass="span6 m-wrap"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="Please enter confirm password"
                                                ValidationGroup="Client" CssClass="required" ControlToValidate="txtConfirmPassword"
                                                Display="Dynamic">
                                            </asp:RequiredFieldValidator>
                                            <asp:CompareValidator ID="CompareValidator1" ControlToValidate="txtConfirmPassword"
                                                ValidationGroup="Client" ControlToCompare="txtPassword" Display="Dynamic" runat="server"
                                                ErrorMessage="Confirm password doesn't match with password"></asp:CompareValidator>
                                        </div>
                                    </div>
                                </div>
                                
                            </div>
                            
                            <div class="row-fluid">
                                <div class="span6">
                                    <div class="control-group">
                                        <label class="control-label">
                                            Is Active<span class="required">*</span></label>
                                        <div class="controls">
                                            <asp:RadioButtonList ID="rdoActive" runat="server">
                                                <asp:ListItem Text="Active" Value="1" Selected="True"></asp:ListItem>
                                                <asp:ListItem Text="InActive" Value="0"></asp:ListItem>
                                            </asp:RadioButtonList>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            
                            <div class="form-actions">
                                <asp:Button ID="btnSubmit" runat="server" Text="Submit" CssClass="btn red" ValidationGroup="Client"
                                    OnClick="btnSubmit_Click" />
                                <asp:Button ID="Button1" runat="server" Text="Cancel" CssClass="btn" />
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
